<!--
 * @Description: 
 * @version: 
 * @Author: sunqian_sr
 * @Date: 2023-03-22 15:08:58
 * @LastEditors: Andy
 * @LastEditTime: 2023-03-23 13:49:31
-->
<template>
  <div class="pwd-panel">
    <div class="pwd-hearder flex-between">
      <div class="logo-contanier flex-column flex-y-center">
        <img src="../../../common/assets/images/srm-logo.png" />
        <!-- <span>SRM供应商管理云平台</span> -->
      </div>

      <div class="account-container flex-row">
        <el-link type="info" :underline="false" class="has-account">{{ $t('login.hasAccount') }}</el-link>
        <el-link :underline="false" style="color: #fff"
          >{{ $t('login.loginIn') }}<i class="el-icon-caret-right"></i>
        </el-link>
      </div>
    </div>
    <div class="pwd-content">
      <x-sub-page :isShowBack="true" :content="title" @goBack="handleReturn">
        <x-state-page
          :state="'success'"
          :title="content"
          :btnText="$t('login.loginIn')"
          @goBack="handleReturn"
          style="margin-bottom: 50px"
        ></x-state-page>
      </x-sub-page>
    </div>
  </div>
</template>
<script>
  export default {
    name: 'RegisterSuccess',
    data() {
      return {
        title: '供应商注册',
        content: '你的账号：S1928398373737  注册成功'
      }
    },
    created() {
      const queryParams = this.$route.query
      this.content = `你的账号：${queryParams.account}  注册成功`
    },
    methods: {
      handleReturn() {
        this.$router.push('/login')
      }
    }
  }
</script>
<style scoped>
  ::v-deep.x-sub-page-container {
    width: 60%;
    height: 80%;
  }
</style>
<style lang="scss" scoped>
  @import '../style/login';
</style>
